import java.io.IOException;

public class 蚂蚁感冒 {
    public static void main(String[] args) throws IOException {
        Scanner scan=new Scanner(System.in);
        int n=scan.nextInt();
        int []nums=new int[n];
        for (int i = 0; i < n; i++) {
            nums[i]=scan.nextInt();
        }
        //先统计两边的蚂蚁
        int leftToRight=0;
        int rightToLeft=0;
        for (int i = 1; i < n; i++) {
            if(nums[i]>0&&Math.abs(nums[i])<Math.abs(nums[0]))
                leftToRight++;
            if(nums[i]<0&&Math.abs(nums[i])>Math.abs(nums[0])){
                rightToLeft++;
            }
        }
        if((nums[0]>0&&rightToLeft==0)||(nums[0]<0&&leftToRight==0))
            System.out.println(1);
        else System.out.println(leftToRight+rightToLeft+1);
    }
}